package com.freak.wanandroid.model.navigation;

import com.freak.httpmanager.callback.SubscriberCallBack;
import com.freak.wanandroid.base.repository.BaseRepository;
import com.freak.wanandroid.bean.NavigationBean;
import com.freak.wanandroid.net.HttpResultFunc;

import java.util.List;

import io.reactivex.rxjava3.core.Observable;


public class NavigationRepository extends BaseRepository {
    public void getNavigation(SubscriberCallBack<List<NavigationBean>> observer) {
        Observable observable = mApiService.getNavigation().map(new HttpResultFunc<List<NavigationBean>>());
        addSubscription(observable, observer);
    }
}
